Ext.define('cp.view.ui.DeleteConfirm',{
    extend: 'Ext.window.MessageBox',
    alias: 'widget.deleteConfirm',
    
    
    
    initComponent: function() {
        this.callParent(arguments);        
    },
    showDialog: function(){
        var cfg = {
            title: 'Confirmar',
            msg: this.mensaje,
            targetToDispatch: this.target,
            buttons: Ext.MessageBox.YESNO,
            icon: Ext.MessageBox.QUESTION
        };
        this.show(cfg);
    },
    setTargetToDispatch: function(target){
        this.targetToDispatch = target;
    },
    getTargetToDispatch: function(){
        return this.targetToDispatch;
    }
});